package org.example.completed.domain;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Reservation implements Serializable{
    private static final long serialVersionUID = 1L;

    private String id;               // 预约ID
    private String name;          // 姓名
    private String contact;       // 联系方式

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime visitTime;

    private String userId;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    private String userAcoount; // 用户名
}